package com.huawang.mdesign.model.service.request.uaf;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.util.List;

/**
 * @author cdl
 */
@Data
public class DynamicTableDefinitionDto {

    private String parentId;

    @NotBlank(message = "projectId can not be empty")
    @Schema(title = "项目id")
    private String projectId;

    @NotBlank(message = "tableId can not be empty")
    @Schema(title = "表格实例id")
    private String tableId;

    @Schema(title = "表头(第一个单元格)id")
    private String headerId;

    @Schema(title = "行id")
    private List<String> rowIds;

    @Schema(title = "列id")
    private List<String> columnIds;

    @Schema(title = "开始时间线模型Id")
    private String startTimeLineId;

    @Schema(title = "任务开始时间")
    private String startDate;

    @Schema(title = "任务结束时间")
    private String endDate;

    @Schema(title = "结束时间线模型Id")
    private String endTimeLineId;

    @Schema(title = "新增列：true; 移除列：false")
    private Boolean add;

}
